<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="es" tagdir="/WEB-INF/tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="maintain" tagdir="/WEB-INF/tags/maintain" %>

<div class="sidebar-menu nav-collapse">
    <ul>
        <c:forEach items="${menus}" var="m">
            <c:if test="${m.name!='工作台' && m.name!='快速服务'}">
                <li class="has-sub">
                    <c:choose>
                        <c:when test="${m.children.size()>0}">
                            <a href="javascript:;" class="">
                                <maintain:showIcon iconIdentity="${m.icon}"/>
                                <span class="menu-text">${m.name}</span>
                                <span class="arrow"></span>
                            </a>
                        </c:when>

                        <c:otherwise>
                            <a class="menuItem" href="<%=request.getContextPath()%>/${m.url}">
                                <maintain:showIcon iconIdentity="${m.icon}"/>
                                <span class="menu-text">${m.name}</span>
                            </a>
                        </c:otherwise>
                    </c:choose>

                    <ul class="sub">
                        <c:forEach items="${m.children}" var="c">
                            <es:submenu2 menu="${c}"/>
                        </c:forEach>
                    </ul>
                </li>
            </c:if>
        </c:forEach>
    </ul>
</div>